Optimal. Leaf size=157 \[ \frac{a^3 c^2 \cos ^5(e+f x)}{2 f (c-c \sin (e+f x))^{9/2}}-\frac{15 a^3 \cos (e+f x)}{4 c^2 f \sqrt{c-c \sin (e+f x)}}+\frac{15 a^3 \tanh ^{-1}\left (\frac{\sqrt{c} \cos (e+f x)}{\sqrt{2} \sqrt{c-c \sin (e+f x)}}\right )}{2 \sqrt{2} c^{5/2} f}-\frac{5 a^3 \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.325292, antiderivative size = 157, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.179, Rules used = {2736, 2680, 2679, 2649, 206} \[ \frac{a^3 c^2 \cos ^5(e+f x)}{2 f (c-c \sin (e+f x))^{9/2}}-\frac{15 a^3 \cos (e+f x)}{4 c^2 f \sqrt{c-c \sin (e+f x)}}+\frac{15 a^3 \tanh ^{-1}\left (\frac{\sqrt{c} \cos (e+f x)}{\sqrt{2} \sqrt{c-c \sin (e+f x)}}\right )}{2 \sqrt{2} c^{5/2} f}-\frac{5 a^3 \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{5/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 2680
Rule 2679
Rule 2649
Rule 206
Rubi steps
\begin{align*} \int \frac{(a+a \sin (e+f x))^3}{(c-c \sin (e+f x))^{5/2}} \, dx &=\left (a^3 c^3\right ) \int \frac{\cos ^6(e+f x)}{(c-c \sin (e+f x))^{11/2}} \, dx\\ &=\frac{a^3 c^2 \cos ^5(e+f x)}{2 f (c-c \sin (e+f x))^{9/2}}-\frac{1}{4} \left (5 a^3 c\right ) \int \frac{\cos ^4(e+f x)}{(c-c \sin (e+f x))^{7/2}} \, dx\\ &=\frac{a^3 c^2 \cos ^5(e+f x)}{2 f (c-c \sin (e+f x))^{9/2}}-\frac{5 a^3 \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{5/2}}+\frac{\left (15 a^3\right ) \int \frac{\cos ^2(e+f x)}{(c-c \sin (e+f x))^{3/2}} \, dx}{8 c}\\ &=\frac{a^3 c^2 \cos ^5(e+f x)}{2 f (c-c \sin (e+f x))^{9/2}}-\frac{5 a^3 \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{5/2}}-\frac{15 a^3 \cos (e+f x)}{4 c^2 f \sqrt{c-c \sin (e+f x)}}+\frac{\left (15 a^3\right ) \int \frac{1}{\sqrt{c-c \sin (e+f x)}} \, dx}{4 c^2}\\ &=\frac{a^3 c^2 \cos ^5(e+f x)}{2 f (c-c \sin (e+f x))^{9/2}}-\frac{5 a^3 \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{5/2}}-\frac{15 a^3 \cos (e+f x)}{4 c^2 f \sqrt{c-c \sin (e+f x)}}-\frac{\left (15 a^3\right ) \operatorname{Subst}\left (\int \frac{1}{2 c-x^2} \, dx,x,-\frac{c \cos (e+f x)}{\sqrt{c-c \sin (e+f x)}}\right )}{2 c^2 f}\\ &=\frac{15 a^3 \tanh ^{-1}\left (\frac{\sqrt{c} \cos (e+f x)}{\sqrt{2} \sqrt{c-c \sin (e+f x)}}\right )}{2 \sqrt{2} c^{5/2} f}+\frac{a^3 c^2 \cos ^5(e+f x)}{2 f (c-c \sin (e+f x))^{9/2}}-\frac{5 a^3 \cos ^3(e+f x)}{4 f (c-c \sin (e+f x))^{5/2}}-\frac{15 a^3 \cos (e+f x)}{4 c^2 f \sqrt{c-c \sin (e+f x)}}\\ \end{align*}
Mathematica [C] time = 0.998543, size = 187, normalized size = 1.19 \[ \frac{a^3 \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) \left (-5 \sin \left (\frac{1}{2} (e+f x)\right )+15 \sin \left (\frac{3}{2} (e+f x)\right )+2 \sin \left (\frac{5}{2} (e+f x)\right )-5 \cos \left (\frac{1}{2} (e+f x)\right )-15 \cos \left (\frac{3}{2} (e+f x)\right )+2 \cos \left (\frac{5}{2} (e+f x)\right )+(15+15 i) \sqrt [4]{-1} \tan ^{-1}\left (\left (\frac{1}{2}+\frac{i}{2}\right ) \sqrt [4]{-1} \left (\tan \left (\frac{1}{4} (e+f x)\right )+1\right )\right ) (4 \sin (e+f x)+\cos (2 (e+f x))-3)\right )}{4 c^2 f (\sin (e+f x)-1)^2 \sqrt{c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.744, size = 239, normalized size = 1.5 \begin{align*} -{\frac{{a}^{3}}{ \left ( -4+4\,\sin \left ( fx+e \right ) \right ) \cos \left ( fx+e \right ) f} \left ( 15\,\sqrt{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }\sqrt{2}}{\sqrt{c}}} \right ) \left ( \sin \left ( fx+e \right ) \right ) ^{2}{c}^{2}-8\,\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }{c}^{3/2} \left ( \sin \left ( fx+e \right ) \right ) ^{2}-30\,\sqrt{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }\sqrt{2}}{\sqrt{c}}} \right ) \sin \left ( fx+e \right ){c}^{2}+18\, \left ( c \left ( 1+\sin \left ( fx+e \right ) \right ) \right ) ^{3/2}\sqrt{c}+16\,\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }{c}^{3/2}\sin \left ( fx+e \right ) +15\,\sqrt{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }\sqrt{2}}{\sqrt{c}}} \right ){c}^{2}-36\,\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }{c}^{3/2} \right ) \sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }{c}^{-{\frac{9}{2}}}{\frac{1}{\sqrt{c-c\sin \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (a \sin \left (f x + e\right ) + a\right )}^{3}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{5}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.19308, size = 984, normalized size = 6.27 \begin{align*} \frac{15 \, \sqrt{2}{\left (a^{3} \cos \left (f x + e\right )^{3} + 3 \, a^{3} \cos \left (f x + e\right )^{2} - 2 \, a^{3} \cos \left (f x + e\right ) - 4 \, a^{3} -{\left (a^{3} \cos \left (f x + e\right )^{2} - 2 \, a^{3} \cos \left (f x + e\right ) - 4 \, a^{3}\right )} \sin \left (f x + e\right )\right )} \sqrt{c} \log \left (-\frac{c \cos \left (f x + e\right )^{2} + 2 \, \sqrt{2} \sqrt{-c \sin \left (f x + e\right ) + c} \sqrt{c}{\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )} + 3 \, c \cos \left (f x + e\right ) +{\left (c \cos \left (f x + e\right ) - 2 \, c\right )} \sin \left (f x + e\right ) + 2 \, c}{\cos \left (f x + e\right )^{2} +{\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right ) - 4 \,{\left (4 \, a^{3} \cos \left (f x + e\right )^{3} - 13 \, a^{3} \cos \left (f x + e\right )^{2} - 13 \, a^{3} \cos \left (f x + e\right ) + 4 \, a^{3} +{\left (4 \, a^{3} \cos \left (f x + e\right )^{2} + 17 \, a^{3} \cos \left (f x + e\right ) + 4 \, a^{3}\right )} \sin \left (f x + e\right )\right )} \sqrt{-c \sin \left (f x + e\right ) + c}}{8 \,{\left (c^{3} f \cos \left (f x + e\right )^{3} + 3 \, c^{3} f \cos \left (f x + e\right )^{2} - 2 \, c^{3} f \cos \left (f x + e\right ) - 4 \, c^{3} f -{\left (c^{3} f \cos \left (f x + e\right )^{2} - 2 \, c^{3} f \cos \left (f x + e\right ) - 4 \, c^{3} f\right )} \sin \left (f x + e\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \mathit{sage}_{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]